home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / Errors.a < prev    next >
Encoding:
Text File  |  1997-08-12  |  66.8 KB  |  1,373 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Errors.a
  3. ;
  4. ;    Contains:    OSErr codes.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0.1
  8. ;
  9. ;    Copyright:    © 1985-1997 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__ERRORS__') = 'UNDEFINED' THEN
  19. __ERRORS__ SET 1
  20.  
  21.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  22.     include 'ConditionalMacros.a'
  23.     ENDIF
  24.  
  25.  
  26. paramErr                        EQU        -50                    ;error in user parameter list
  27. noHardwareErr                    EQU        -200                ;Sound Manager Error Returns
  28. notEnoughHardwareErr            EQU        -201                ;Sound Manager Error Returns
  29. userCanceledErr                    EQU        -128
  30. qErr                            EQU        -1                    ;queue element not found during deletion
  31. vTypErr                            EQU        -2                    ;invalid queue element
  32. corErr                            EQU        -3                    ;core routine number out of range
  33. unimpErr                        EQU        -4                    ;unimplemented core routine
  34. SlpTypeErr                        EQU        -5                    ;invalid queue element
  35. seNoDB                            EQU        -8                    ;no debugger installed to handle debugger command
  36. controlErr                        EQU        -17                    ;I/O System Errors
  37. statusErr                        EQU        -18                    ;I/O System Errors
  38. readErr                            EQU        -19                    ;I/O System Errors
  39. writErr                            EQU        -20                    ;I/O System Errors
  40. badUnitErr                        EQU        -21                    ;I/O System Errors
  41. unitEmptyErr                    EQU        -22                    ;I/O System Errors
  42. openErr                            EQU        -23                    ;I/O System Errors
  43. closErr                            EQU        -24                    ;I/O System Errors
  44. dRemovErr                        EQU        -25                    ;tried to remove an open driver
  45. dInstErr                        EQU        -26                    ;DrvrInstall couldn't find driver in resources
  46.  
  47. abortErr                        EQU        -27                    ;IO call aborted by KillIO
  48. iIOAbortErr                        EQU        -27                    ;IO abort error (Printing Manager)
  49. notOpenErr                        EQU        -28                    ;Couldn't rd/wr/ctl/sts cause driver not opened
  50. unitTblFullErr                    EQU        -29                    ;unit table has no more entries
  51. dceExtErr                        EQU        -30                    ;dce extension error
  52. slotNumErr                        EQU        -360                ;invalid slot # error
  53. gcrOnMFMErr                        EQU        -400                ;gcr format on high density media error
  54. dirFulErr                        EQU        -33                    ;Directory full
  55. dskFulErr                        EQU        -34                    ;disk full
  56. nsvErr                            EQU        -35                    ;no such volume
  57. ioErr                            EQU        -36                    ;I/O error (bummers)
  58. bdNamErr                        EQU        -37                    ;there may be no bad names in the final system!
  59. fnOpnErr                        EQU        -38                    ;File not open
  60. eofErr                            EQU        -39                    ;End of file
  61. posErr                            EQU        -40                    ;tried to position to before start of file (r/w)
  62. mFulErr                            EQU        -41                    ;memory full (open) or file won't fit (load)
  63. tmfoErr                            EQU        -42                    ;too many files open
  64. fnfErr                            EQU        -43                    ;File not found
  65. wPrErr                            EQU        -44                    ;diskette is write protected.
  66. fLckdErr                        EQU        -45                    ;file is locked
  67.  
  68. vLckdErr                        EQU        -46                    ;volume is locked
  69. fBsyErr                            EQU        -47                    ;File is busy (delete)
  70. dupFNErr                        EQU        -48                    ;duplicate filename (rename)
  71. opWrErr                            EQU        -49                    ;file already open with with write permission
  72. rfNumErr                        EQU        -51                    ;refnum error
  73. gfpErr                            EQU        -52                    ;get file position error
  74. volOffLinErr                    EQU        -53                    ;volume not on line error (was Ejected)
  75. permErr                            EQU        -54                    ;permissions error (on file open)
  76. volOnLinErr                        EQU        -55                    ;drive volume already on-line at MountVol
  77. nsDrvErr                        EQU        -56                    ;no such drive (tried to mount a bad drive num)
  78. noMacDskErr                        EQU        -57                    ;not a mac diskette (sig bytes are wrong)
  79. extFSErr                        EQU        -58                    ;volume in question belongs to an external fs
  80. fsRnErr                            EQU        -59                    ;file system internal error:during rename the old entry was deleted but could not be restored.
  81. badMDBErr                        EQU        -60                    ;bad master directory block
  82. wrPermErr                        EQU        -61                    ;write permissions error
  83. dirNFErr                        EQU        -120                ;Directory not found
  84. tmwdoErr                        EQU        -121                ;No free WDCB available
  85. badMovErr                        EQU        -122                ;Move into offspring error
  86. wrgVolTypErr                    EQU        -123                ;Wrong volume type error [operation not supported for MFS]
  87. volGoneErr                        EQU        -124                ;Server volume has been disconnected.
  88.  
  89. fidNotFound                        EQU        -1300                ;no file thread exists.
  90. fidExists                        EQU        -1301                ;file id already exists
  91. notAFileErr                        EQU        -1302                ;directory specified
  92. diffVolErr                        EQU        -1303                ;files on different volumes
  93. catChangedErr                    EQU        -1304                ;the catalog has been modified
  94. desktopDamagedErr                EQU        -1305                ;desktop database files are corrupted
  95. sameFileErr                        EQU        -1306                ;can't exchange a file with itself
  96. badFidErr                        EQU        -1307                ;file id is dangling or doesn't match with the file number
  97. notARemountErr                    EQU        -1308                ;when _Mount allows only remounts and doesn't get one
  98. fileBoundsErr                    EQU        -1309                ;file's EOF, offset, mark or size is too big
  99. fsDataTooBigErr                    EQU        -1310                ;file or volume is too big for system
  100. volVMBusyErr                    EQU        -1311                ;can't eject because volume is in use by VM
  101. envNotPresent                    EQU        -5500                ;returned by glue.
  102. envBadVers                        EQU        -5501                ;Version non-positive
  103. envVersTooBig                    EQU        -5502                ;Version bigger than call can handle
  104. fontDecError                    EQU        -64                    ;error during font declaration
  105. fontNotDeclared                    EQU        -65                    ;font not declared
  106. fontSubErr                        EQU        -66                    ;font substitution occured
  107. fontNotOutlineErr                EQU        -32615                ;bitmap font passed to routine that does outlines only
  108. firstDskErr                        EQU        -84                    ;I/O System Errors
  109. lastDskErr                        EQU        -64                    ;I/O System Errors
  110. noDriveErr                        EQU        -64                    ;drive not installed
  111. offLinErr                        EQU        -65                    ;r/w requested for an off-line drive
  112. noNybErr                        EQU        -66                    ;couldn't find 5 nybbles in 200 tries
  113.  
  114. noAdrMkErr                        EQU        -67                    ;couldn't find valid addr mark
  115. dataVerErr                        EQU        -68                    ;read verify compare failed
  116. badCksmErr                        EQU        -69                    ;addr mark checksum didn't check
  117. badBtSlpErr                        EQU        -70                    ;bad addr mark bit slip nibbles
  118. noDtaMkErr                        EQU        -71                    ;couldn't find a data mark header
  119. badDCksum                        EQU        -72                    ;bad data mark checksum
  120. badDBtSlp                        EQU        -73                    ;bad data mark bit slip nibbles
  121. wrUnderrun                        EQU        -74                    ;write underrun occurred
  122. cantStepErr                        EQU        -75                    ;step handshake failed
  123. tk0BadErr                        EQU        -76                    ;track 0 detect doesn't change
  124. initIWMErr                        EQU        -77                    ;unable to initialize IWM
  125. twoSideErr                        EQU        -78                    ;tried to read 2nd side on a 1-sided drive
  126. spdAdjErr                        EQU        -79                    ;unable to correctly adjust disk speed
  127. seekErr                            EQU        -80                    ;track number wrong on address mark
  128. sectNFErr                        EQU        -81                    ;sector number never found on a track
  129. fmt1Err                            EQU        -82                    ;can't find sector 0 after track format
  130. fmt2Err                            EQU        -83                    ;can't get enough sync
  131. verErr                            EQU        -84                    ;track failed to verify
  132. clkRdErr                        EQU        -85                    ;unable to read same clock value twice
  133. clkWrErr                        EQU        -86                    ;time written did not verify
  134.  
  135. prWrErr                            EQU        -87                    ;parameter ram written didn't read-verify
  136. prInitErr                        EQU        -88                    ;InitUtil found the parameter ram uninitialized
  137. rcvrErr                            EQU        -89                    ;SCC receiver error (framing; parity; OR)
  138. breakRecd                        EQU        -90                    ;Break received (SCC)
  139.                                                             ;Power Manager Errors
  140. pmBusyErr                        EQU        -13000                ;Power Mgr never ready to start handshake
  141. pmReplyTOErr                    EQU        -13001                ;Timed out waiting for reply
  142. pmSendStartErr                    EQU        -13002                ;during send, pmgr did not start hs
  143. pmSendEndErr                    EQU        -13003                ;during send, pmgr did not finish hs
  144. pmRecvStartErr                    EQU        -13004                ;during receive, pmgr did not start hs
  145. pmRecvEndErr                    EQU        -13005                ;during receive, pmgr did not finish hs configured for this connection
  146.                                                             ; Printing Errors 
  147. iMemFullErr                        EQU        -108
  148. iIOAbort                        EQU        -27                    ;Scrap Manager errors
  149. noScrapErr                        EQU        -100                ;No scrap exists error
  150. noTypeErr                        EQU        -102                ;No object of that type in scrap
  151. memROZWarn                        EQU        -99                    ;soft error in ROZ
  152. memROZError                        EQU        -99                    ;hard error in ROZ
  153. memROZErr                        EQU        -99                    ;hard error in ROZ
  154. memFullErr                        EQU        -108                ;Not enough room in heap zone
  155. nilHandleErr                    EQU        -109                ;Master Pointer was NIL in HandleZone or other
  156. memWZErr                        EQU        -111                ;WhichZone failed (applied to free block)
  157. memPurErr                        EQU        -112                ;trying to purge a locked or non-purgeable block
  158. memAdrErr                        EQU        -110                ;address was odd; or out of range
  159.  
  160. memAZErr                        EQU        -113                ;Address in zone check failed
  161. memPCErr                        EQU        -114                ;Pointer Check failed
  162. memBCErr                        EQU        -115                ;Block Check failed
  163. memSCErr                        EQU        -116                ;Size Check failed
  164. memLockedErr                    EQU        -117                ;trying to move a locked block (MoveHHi)
  165. resourceInMemory                EQU        -188                ;Resource already in memory
  166. writingPastEnd                    EQU        -189                ;Writing past end of file
  167. inputOutOfBounds                EQU        -190                ;Offset of Count out of bounds
  168. resNotFound                        EQU        -192                ;Resource not found
  169. resFNotFound                    EQU        -193                ;Resource file not found
  170. addResFailed                    EQU        -194                ;AddResource failed
  171. addRefFailed                    EQU        -195                ;AddReference failed
  172. rmvResFailed                    EQU        -196                ;RmveResource failed
  173. rmvRefFailed                    EQU        -197                ;RmveReference failed
  174. resAttrErr                        EQU        -198                ;attribute inconsistent with operation
  175. mapReadErr                        EQU        -199                ;map inconsistent with operation
  176. CantDecompress                    EQU        -186                ;resource bent ("the bends") - can't decompress a compressed resource
  177. badExtResource                    EQU        -185                ;extended resource has a bad format.
  178. evtNotEnb                        EQU        1                    ;event not enabled at PostEvent
  179. noMemForPictPlaybackErr            EQU        -145
  180. rgnOverflowErr                    EQU        -147
  181. rgnTooBigError                    EQU        -147
  182. pixMapTooDeepErr                EQU        -148
  183. insufficientStackErr            EQU        -149
  184. nsStackErr                        EQU        -149
  185. ;  OffScreen QuickDraw Errors 
  186.  
  187. cMatchErr                        EQU        -150                ;Color2Index failed to find an index
  188. cTempMemErr                        EQU        -151                ;failed to allocate memory for temporary structures
  189. cNoMemErr                        EQU        -152                ;failed to allocate memory for structure
  190. cRangeErr                        EQU        -153                ;range error on colorTable request
  191. cProtectErr                        EQU        -154                ;colorTable entry protection violation
  192. cDevErr                            EQU        -155                ;invalid type of graphics device
  193. cResErr                            EQU        -156                ;invalid resolution for MakeITable
  194. cDepthErr                        EQU        -157                ;invalid pixel depth 
  195. rgnTooBigErr                    EQU        -500
  196. updPixMemErr                    EQU        -125                ;insufficient memory to update a pixmap
  197. pictInfoVersionErr                EQU        -11000                ;wrong version of the PictInfo structure
  198. pictInfoIDErr                    EQU        -11001                ;the internal consistancy check for the PictInfoID is wrong
  199. pictInfoVerbErr                    EQU        -11002                ;the passed verb was invalid
  200. cantLoadPickMethodErr            EQU        -11003                ;unable to load the custom pick proc
  201. colorsRequestedErr                EQU        -11004                ;the number of colors requested was illegal
  202. pictureDataErr                    EQU        -11005                ;the picture data was invalid
  203.                                                             ;Sound Manager errors
  204. noHardware                        EQU        -200                ;obsolete spelling
  205. notEnoughHardware                EQU        -201                ;obsolete spelling
  206. queueFull                        EQU        -203                ;Sound Manager Error Returns
  207. resProblem                        EQU        -204                ;Sound Manager Error Returns
  208. badChannel                        EQU        -205                ;Sound Manager Error Returns
  209.  
  210. badFormat                        EQU        -206                ;Sound Manager Error Returns
  211. notEnoughBufferSpace            EQU        -207                ;could not allocate enough memory
  212. badFileFormat                    EQU        -208                ;was not type AIFF or was of bad format,corrupt
  213. channelBusy                        EQU        -209                ;the Channel is being used for a PFD already
  214. buffersTooSmall                    EQU        -210                ;can not operate in the memory allowed
  215. channelNotBusy                    EQU        -211
  216. noMoreRealTime                    EQU        -212                ;not enough CPU cycles left to add another task
  217. siNoSoundInHardware                EQU        -220                ;no Sound Input hardware
  218. siBadSoundInDevice                EQU        -221                ;invalid index passed to SoundInGetIndexedDevice
  219. siNoBufferSpecified                EQU        -222                ;returned by synchronous SPBRecord if nil buffer passed
  220. siInvalidCompression            EQU        -223                ;invalid compression type
  221. siHardDriveTooSlow                EQU        -224                ;hard drive too slow to record to disk
  222. siInvalidSampleRate                EQU        -225                ;invalid sample rate
  223. siInvalidSampleSize                EQU        -226                ;invalid sample size
  224. siDeviceBusyErr                    EQU        -227                ;input device already in use
  225. siBadDeviceName                    EQU        -228                ;input device could not be opened
  226. siBadRefNum                        EQU        -229                ;invalid input device reference number
  227. siInputDeviceErr                EQU        -230                ;input device hardware failure
  228. siUnknownInfoType                EQU        -231                ;invalid info type selector (returned by driver)
  229. siUnknownQuality                EQU        -232                ;invalid quality selector (returned by driver)
  230. ; Speech Manager errors
  231.  
  232. noSynthFound                    EQU        -240
  233. synthOpenFailed                    EQU        -241
  234. synthNotReady                    EQU        -242
  235. bufTooSmall                        EQU        -243
  236. voiceNotFound                    EQU        -244
  237. incompatibleVoice                EQU        -245
  238. badDictFormat                    EQU        -246
  239. badInputText                    EQU        -247
  240. ;  Midi Manager Errors: 
  241.  
  242. midiNoClientErr                    EQU        -250                ;no client with that ID found
  243. midiNoPortErr                    EQU        -251                ;no port with that ID found
  244. midiTooManyPortsErr                EQU        -252                ;too many ports already installed in the system
  245. midiTooManyConsErr                EQU        -253                ;too many connections made
  246. midiVConnectErr                    EQU        -254                ;pending virtual connection created
  247. midiVConnectMade                EQU        -255                ;pending virtual connection resolved
  248. midiVConnectRmvd                EQU        -256                ;pending virtual connection removed
  249. midiNoConErr                    EQU        -257                ;no connection exists between specified ports
  250. midiWriteErr                    EQU        -258                ;MIDIWritePacket couldn't write to all connected ports
  251. midiNameLenErr                    EQU        -259                ;name supplied is longer than 31 characters
  252. midiDupIDErr                    EQU        -260                ;duplicate client ID
  253. midiInvalidCmdErr                EQU        -261                ;command not supported for port type
  254. ; Notification Manager errors
  255.  
  256. nmTypErr                        EQU        -299                ;wrong queue type
  257. siInitSDTblErr                    EQU        1                    ;slot int dispatch table could not be initialized.
  258. siInitVBLQsErr                    EQU        2                    ;VBLqueues for all slots could not be initialized.
  259. siInitSPTblErr                    EQU        3                    ;slot priority table could not be initialized.
  260. sdmJTInitErr                    EQU        10                    ;SDM Jump Table could not be initialized.
  261. sdmInitErr                        EQU        11                    ;SDM could not be initialized.
  262. sdmSRTInitErr                    EQU        12                    ;Slot Resource Table could not be initialized.
  263. sdmPRAMInitErr                    EQU        13                    ;Slot PRAM could not be initialized.
  264. sdmPriInitErr                    EQU        14                    ;Cards could not be initialized.
  265. smSDMInitErr                    EQU        -290                ;Error; SDM could not be initialized.
  266. smSRTInitErr                    EQU        -291                ;Error; Slot Resource Table could not be initialized.
  267. smPRAMInitErr                    EQU        -292                ;Error; Slot Resource Table could not be initialized.
  268. smPriInitErr                    EQU        -293                ;Error; Cards could not be initialized.
  269. smEmptySlot                        EQU        -300                ;No card in slot
  270. smCRCFail                        EQU        -301                ;CRC check failed for declaration data
  271. smFormatErr                        EQU        -302                ;FHeader Format is not Apple's
  272. smRevisionErr                    EQU        -303                ;Wrong revison level
  273. smNoDir                            EQU        -304                ;Directory offset is Nil
  274. smDisabledSlot                    EQU        -305                ;This slot is disabled (-305 use to be smLWTstBad)
  275. smNosInfoArray                    EQU        -306                ;No sInfoArray. Memory Mgr error.
  276.  
  277.                                                             ;Dictionary Manager errors
  278. notBTree                        EQU        -410                ;The file is not a dictionary.
  279. btNoSpace                        EQU        -413                ;Can't allocate disk space.
  280. btDupRecErr                        EQU        -414                ;Record already exists.
  281. btRecNotFnd                        EQU        -415                ;Record cannot be found.
  282. btKeyLenErr                        EQU        -416                ;Maximum key length is too long or equal to zero.
  283. btKeyAttrErr                    EQU        -417                ;There is no such a key attribute.
  284. unknownInsertModeErr            EQU        -20000                ;There is no such an insert mode.
  285. recordDataTooBigErr                EQU        -20001                ;The record data is bigger than buffer size (1024 bytes).
  286. invalidIndexErr                    EQU        -20002                ;The recordIndex parameter is not valid.
  287.  
  288. smResrvErr                        EQU        -307                ;Fatal reserved error. Resreved field <> 0.
  289. smUnExBusErr                    EQU        -308                ;Unexpected BusError
  290. smBLFieldBad                    EQU        -309                ;ByteLanes field was bad.
  291. smFHBlockRdErr                    EQU        -310                ;Error occured during _sGetFHeader.
  292. smFHBlkDispErr                    EQU        -311                ;Error occured during _sDisposePtr (Dispose of FHeader block).
  293. smDisposePErr                    EQU        -312                ;_DisposePointer error
  294. smNoBoardSRsrc                    EQU        -313                ;No Board sResource.
  295. smGetPRErr                        EQU        -314                ;Error occured during _sGetPRAMRec (See SIMStatus).
  296. smNoBoardId                        EQU        -315                ;No Board Id.
  297. smInitStatVErr                    EQU        -316                ;The InitStatusV field was negative after primary or secondary init.
  298. smInitTblVErr                    EQU        -317                ;An error occured while trying to initialize the Slot Resource Table.
  299. smNoJmpTbl                        EQU        -318                ;SDM jump table could not be created.
  300. smReservedSlot                    EQU        -318                ;slot is reserved, VM should not use this address space.
  301. smBadBoardId                    EQU        -319                ;BoardId was wrong; re-init the PRAM record.
  302. smBusErrTO                        EQU        -320                ;BusError time out.
  303.                                                             ; These errors are logged in the  vendor status field of the sInfo record. 
  304. svTempDisable                    EQU        -32768                ;Temporarily disable card but run primary init.
  305. svDisabled                        EQU        -32640                ;Reserve range -32640 to -32768 for Apple temp disables.
  306. smBadRefId                        EQU        -330                ;Reference Id not found in List
  307. smBadsList                        EQU        -331                ;Bad sList: Id1 < Id2 < Id3 ...format is not followed.
  308. smReservedErr                    EQU        -332                ;Reserved field not zero
  309. smCodeRevErr                    EQU        -333                ;Code revision is wrong
  310.  
  311. smCPUErr                        EQU        -334                ;Code revision is wrong
  312. smsPointerNil                    EQU        -335                ;LPointer is nil From sOffsetData. If this error occurs; check sInfo rec for more information.
  313. smNilsBlockErr                    EQU        -336                ;Nil sBlock error (Dont allocate and try to use a nil sBlock)
  314. smSlotOOBErr                    EQU        -337                ;Slot out of bounds error
  315. smSelOOBErr                        EQU        -338                ;Selector out of bounds error
  316. smNewPErr                        EQU        -339                ;_NewPtr error
  317. smBlkMoveErr                    EQU        -340                ;_BlockMove error
  318. smCkStatusErr                    EQU        -341                ;Status of slot = fail.
  319. smGetDrvrNamErr                    EQU        -342                ;Error occured during _sGetDrvrName.
  320. smDisDrvrNamErr                    EQU        -343                ;Error occured during _sDisDrvrName.
  321. smNoMoresRsrcs                    EQU        -344                ;No more sResources
  322. smsGetDrvrErr                    EQU        -345                ;Error occurred during _sGetDriver.
  323. smBadsPtrErr                    EQU        -346                ;Bad pointer was passed to sCalcsPointer
  324. smByteLanesErr                    EQU        -347                ;NumByteLanes was determined to be zero.
  325. smOffsetErr                        EQU        -348                ;Offset was too big (temporary error
  326. smNoGoodOpens                    EQU        -349                ;No opens were successfull in the loop.
  327. smSRTOvrFlErr                    EQU        -350                ;SRT over flow.
  328. smRecNotFnd                        EQU        -351                ;Record not found in the SRT.
  329. editionMgrInitErr                EQU        -450                ;edition manager not inited by this app
  330. badSectionErr                    EQU        -451                ;not a valid SectionRecord
  331.  
  332. notRegisteredSectionErr            EQU        -452                ;not a registered SectionRecord
  333. badEditionFileErr                EQU        -453                ;edition file is corrupt
  334. badSubPartErr                    EQU        -454                ;can not use sub parts in this release
  335. multiplePublisherWrn            EQU        -460                ;A Publisher is already registered for that container
  336. containerNotFoundWrn            EQU        -461                ;could not find editionContainer at this time
  337. containerAlreadyOpenWrn            EQU        -462                ;container already opened by this section
  338. notThePublisherWrn                EQU        -463                ;not the first registered publisher for that container
  339. teScrapSizeErr                    EQU        -501                ;scrap item too big for text edit record
  340. hwParamErr                        EQU        -502                ;bad selector for _HWPriv
  341.                                                             ;Process Manager errors
  342. procNotFound                    EQU        -600                ;no eligible process with specified descriptor
  343. memFragErr                        EQU        -601                ;not enough room to launch app w/special requirements
  344. appModeErr                        EQU        -602                ;memory mode is 32-bit, but app not 32-bit clean
  345. protocolErr                        EQU        -603                ;app made module calls in improper order
  346. hardwareConfigErr                EQU        -604                ;hardware configuration not correct for call
  347. appMemFullErr                    EQU        -605                ;application SIZE not big enough for launch
  348. appIsDaemon                        EQU        -606                ;app is BG-only, and launch flags disallow this
  349. bufferIsSmall                    EQU        -607                ;error returns from Post and Accept 
  350. noOutstandingHLE                EQU        -608
  351. connectionInvalid                EQU        -609
  352. noUserInteractionAllowed        EQU        -610                ; no user interaction allowed 
  353. ;  Thread Manager Error Codes 
  354.  
  355. threadTooManyReqsErr            EQU        -617
  356. threadNotFoundErr                EQU        -618
  357. threadProtocolErr                EQU        -619
  358. ; MemoryDispatch errors
  359.  
  360. notEnoughMemoryErr                EQU        -620                ;insufficient physical memory
  361. notHeldErr                        EQU        -621                ;specified range of memory is not held
  362. cannotMakeContiguousErr            EQU        -622                ;cannot make specified range contiguous
  363. notLockedErr                    EQU        -623                ;specified range of memory is not locked
  364. interruptsMaskedErr                EQU        -624                ;don’t call with interrupts masked
  365. cannotDeferErr                    EQU        -625                ;unable to defer additional functions
  366. noMMUErr                        EQU        -626                ;no MMU present
  367.  
  368. ddpSktErr                        EQU        -91                    ;error in soket number
  369. ddpLenErr                        EQU        -92                    ;data length too big
  370. noBridgeErr                        EQU        -93                    ;no network bridge for non-local send
  371. lapProtErr                        EQU        -94                    ;error in attaching/detaching protocol
  372. excessCollsns                    EQU        -95                    ;excessive collisions on write
  373. portNotPwr                        EQU        -96                    ;serial port not currently powered
  374. portInUse                        EQU        -97                    ;driver Open error code (port is in use)
  375. portNotCf                        EQU        -98                    ;driver Open error code (parameter RAM not configured for this connection)
  376. ; Help Mgr error range: -850 to -874
  377.  
  378. hmHelpDisabled                    EQU        -850                ; Show Balloons mode was off, call to routine ignored 
  379. hmBalloonAborted                EQU        -853                ; Returned if mouse was moving or mouse wasn't in window port rect 
  380. hmSameAsLastBalloon                EQU        -854                ; Returned from HMShowMenuBalloon if menu & item is same as last time 
  381. hmHelpManagerNotInited            EQU        -855                ; Returned from HMGetHelpMenuHandle if help menu not setup 
  382. hmSkippedBalloon                EQU        -857                ; Returned from calls if helpmsg specified a skip balloon 
  383. hmWrongVersion                    EQU        -858                ; Returned if help mgr resource was the wrong version 
  384. hmUnknownHelpType                EQU        -859                ; Returned if help msg record contained a bad type 
  385. hmOperationUnsupported            EQU        -861                ; Returned from HMShowBalloon call if bad method passed to routine 
  386. hmNoBalloonUp                    EQU        -862                ; Returned from HMRemoveBalloon if no balloon was visible when call was made 
  387. hmCloseViewActive                EQU        -863                ; Returned from HMRemoveBalloon if CloseView was active 
  388.  
  389. nbpBuffOvr                        EQU        -1024                ;Buffer overflow in LookupName
  390. nbpNoConfirm                    EQU        -1025
  391. nbpConfDiff                        EQU        -1026                ;Name confirmed at different socket
  392. nbpDuplicate                    EQU        -1027                ;Duplicate name exists already
  393. nbpNotFound                        EQU        -1028                ;Name not found on remove
  394. nbpNISErr                        EQU        -1029                ;Error trying to open the NIS
  395. aspBadVersNum                    EQU        -1066                ;Server cannot support this ASP version
  396. aspBufTooSmall                    EQU        -1067                ;Buffer too small
  397. aspNoMoreSess                    EQU        -1068                ;No more sessions on server
  398. aspNoServers                    EQU        -1069                ;No servers at that address
  399. aspParamErr                        EQU        -1070                ;Parameter error
  400.  
  401. aspServerBusy                    EQU        -1071                ;Server cannot open another session
  402. aspSessClosed                    EQU        -1072                ;Session closed
  403. aspSizeErr                        EQU        -1073                ;Command block too big
  404. aspTooMany                        EQU        -1074                ;Too many clients (server error)
  405. aspNoAck                        EQU        -1075                ;No ack on attention request (server err)
  406. reqFailed                        EQU        -1096
  407. tooManyReqs                        EQU        -1097
  408. tooManySkts                        EQU        -1098
  409. badATPSkt                        EQU        -1099
  410. badBuffNum                        EQU        -1100
  411. noRelErr                        EQU        -1101
  412. cbNotFound                        EQU        -1102
  413. noSendResp                        EQU        -1103
  414. noDataArea                        EQU        -1104
  415. reqAborted                        EQU        -1105
  416. ;  ADSP Error Codes 
  417.  
  418.                                                             ; driver control ioResults 
  419. errRefNum                        EQU        -1280                ; bad connection refNum 
  420. errAborted                        EQU        -1279                ; control call was aborted 
  421. errState                        EQU        -1278                ; bad connection state for this operation 
  422. errOpening                        EQU        -1277                ; open connection request failed 
  423. errAttention                    EQU        -1276                ; attention message too long 
  424. errFwdReset                        EQU        -1275                ; read terminated by forward reset 
  425. errDSPQueueSize                    EQU        -1274                ; DSP Read/Write Queue Too small 
  426. errOpenDenied                    EQU        -1273                ; open connection request was denied 
  427. ; ***    OSL ERROR CODES            ***
  428.  
  429. errAEImpossibleRange            EQU        -1720                ; A range like 3rd to 2nd, or 1st to all. 
  430. errAEWrongNumberArgs            EQU        -1721                ; Logical op kAENOT used with other than 1 term 
  431. errAEAccessorNotFound            EQU        -1723                ; Accessor proc matching wantClass and containerType or wildcards not found 
  432. errAENoSuchLogical                EQU        -1725                ; Something other than AND, OR, or NOT 
  433. errAEBadTestKey                    EQU        -1726                ; Test is neither typeLogicalDescriptor nor typeCompDescriptor 
  434. errAENotAnObjSpec                EQU        -1727                ; Param to AEResolve not of type 'obj ' 
  435. errAENoSuchObject                EQU        -1728                ; e.g.,: specifier asked for the 3rd, but there are only 2. Basically, this indicates a run-time resolution error. 
  436. errAENegativeCount                EQU        -1729                ; CountProc returned negative value 
  437. errAEEmptyListContainer            EQU        -1730                ; Attempt to pass empty list as container to accessor 
  438. ; --------------------------------------------------------------
  439. ;        Apple event manager error messages
  440. ;--------------------------------------------------------------
  441.  
  442.  
  443. errAECoercionFail                EQU        -1700                ; bad parameter data or unable to coerce the data supplied 
  444. errAEDescNotFound                EQU        -1701
  445. errAECorruptData                EQU        -1702
  446. errAEWrongDataType                EQU        -1703
  447. errAENotAEDesc                    EQU        -1704
  448. errAEBadListItem                EQU        -1705                ; the specified list item does not exist 
  449. errAENewerVersion                EQU        -1706                ; need newer version of the AppleEvent manager 
  450. errAENotAppleEvent                EQU        -1707                ; the event is not in AppleEvent format 
  451. errAEEventNotHandled            EQU        -1708                ; the AppleEvent was not handled by any handler 
  452. errAEReplyNotValid                EQU        -1709                ; AEResetTimer was passed an invalid reply parameter 
  453. errAEUnknownSendMode            EQU        -1710                ; mode wasn't NoReply, WaitReply, or QueueReply or Interaction level is unknown 
  454. errAEWaitCanceled                EQU        -1711                ; in AESend, the user cancelled out of wait loop for reply or receipt 
  455. errAETimeout                    EQU        -1712                ; the AppleEvent timed out 
  456. errAENoUserInteraction            EQU        -1713                ; no user interaction is allowed 
  457. errAENotASpecialFunction        EQU        -1714                ; there is no special function for/with this keyword 
  458. errAEParamMissed                EQU        -1715                ; a required parameter was not accessed 
  459. errAEUnknownAddressType            EQU        -1716                ; the target address type is not known 
  460. errAEHandlerNotFound            EQU        -1717                ; no handler in the dispatch tables fits the parameters to AEGetEventHandler or AEGetCoercionHandler 
  461. errAEReplyNotArrived            EQU        -1718                ; the contents of the reply you are accessing have not arrived yet 
  462. errAEIllegalIndex                EQU        -1719                ; index is out of range in a put operation 
  463. errAEUnknownObjectType            EQU        -1731                ; available only in version 1.0.1 or greater 
  464. errAERecordingIsAlreadyOn        EQU        -1732                ; available only in version 1.0.1 or greater 
  465. errAEReceiveTerminate            EQU        -1733                ; break out of all levels of AEReceive to the topmost (1.1 or greater) 
  466. errAEReceiveEscapeCurrent        EQU        -1734                ; break out of only lowest level of AEReceive (1.1 or greater) 
  467. errAEEventFiltered                EQU        -1735                ; event has been filtered, and should not be propogated (1.1 or greater) 
  468. errAEDuplicateHandler            EQU        -1736                ; attempt to install handler in table for identical class and id (1.1 or greater) 
  469. errAEStreamBadNesting            EQU        -1737                ; nesting violation while streaming 
  470. errAEStreamAlreadyConverted        EQU        -1738                ; attempt to convert a stream that has already been converted 
  471. errAEDescIsNull                    EQU        -1739                ; attempting to perform an invalid operation on a null descriptor 
  472. ; **************************************************************************
  473. ;    API Errors
  474. ;*************************************************************************
  475.  
  476.  
  477. errOSASystemError                EQU        -1750
  478. errOSAInvalidID                    EQU        -1751
  479. errOSABadStorageType            EQU        -1752
  480. errOSAScriptError                EQU        -1753
  481. errOSABadSelector                EQU        -1754
  482. errOSASourceNotAvailable        EQU        -1756
  483. errOSANoSuchDialect                EQU        -1757
  484. errOSADataFormatObsolete        EQU        -1758
  485. errOSADataFormatTooNew            EQU        -1759
  486. errOSACorruptData                EQU        -1702
  487. errOSARecordingIsAlreadyOn        EQU        -1732
  488. errOSAComponentMismatch            EQU        -1761                ; Parameters are from 2 different components 
  489. errOSACantOpenComponent            EQU        -1762                ; Can't connect to scripting system with that ID 
  490.  
  491. ; QuickTime errors
  492.  
  493. couldNotResolveDataRef            EQU        -2000
  494. badImageDescription                EQU        -2001
  495. badPublicMovieAtom                EQU        -2002
  496. cantFindHandler                    EQU        -2003
  497. cantOpenHandler                    EQU        -2004
  498. badComponentType                EQU        -2005
  499. noMediaHandler                    EQU        -2006
  500. noDataHandler                    EQU        -2007
  501. invalidMedia                    EQU        -2008
  502. invalidTrack                    EQU        -2009
  503. invalidMovie                    EQU        -2010
  504. invalidSampleTable                EQU        -2011
  505. invalidDataRef                    EQU        -2012
  506. invalidHandler                    EQU        -2013
  507. invalidDuration                    EQU        -2014
  508. invalidTime                        EQU        -2015
  509. cantPutPublicMovieAtom            EQU        -2016
  510. badEditList                        EQU        -2017
  511. mediaTypesDontMatch                EQU        -2018
  512. progressProcAborted                EQU        -2019
  513. movieToolboxUninitialized        EQU        -2020
  514. noRecordOfApp                    EQU        -2020                ; replica 
  515. wfFileNotFound                    EQU        -2021
  516. cantCreateSingleForkFile        EQU        -2022                ; happens when file already exists 
  517. invalidEditState                EQU        -2023
  518. nonMatchingEditState            EQU        -2024
  519. staleEditState                    EQU        -2025
  520. userDataItemNotFound            EQU        -2026
  521. maxSizeToGrowTooSmall            EQU        -2027
  522. badTrackIndex                    EQU        -2028
  523. trackIDNotFound                    EQU        -2029
  524. trackNotInMovie                    EQU        -2030
  525. timeNotInTrack                    EQU        -2031
  526. timeNotInMedia                    EQU        -2032
  527. badEditIndex                    EQU        -2033
  528. internalQuickTimeError            EQU        -2034
  529. cantEnableTrack                    EQU        -2035
  530. invalidRect                        EQU        -2036
  531. invalidSampleNum                EQU        -2037
  532. invalidChunkNum                    EQU        -2038
  533. invalidSampleDescIndex            EQU        -2039
  534. invalidChunkCache                EQU        -2040
  535. invalidSampleDescription        EQU        -2041
  536. dataNotOpenForRead                EQU        -2042
  537. dataNotOpenForWrite                EQU        -2043
  538. dataAlreadyOpenForWrite            EQU        -2044
  539. dataAlreadyClosed                EQU        -2045
  540. endOfDataReached                EQU        -2046
  541. dataNoDataRef                    EQU        -2047
  542. noMovieFound                    EQU        -2048
  543. invalidDataRefContainer            EQU        -2049
  544. badDataRefIndex                    EQU        -2050
  545. noDefaultDataRef                EQU        -2051
  546. couldNotUseAnExistingSample        EQU        -2052
  547. featureUnsupported                EQU        -2053
  548. noVideoTrackInMovieErr            EQU        -2054                ; QT for Windows error 
  549. noSoundTrackInMovieErr            EQU        -2055                ; QT for Windows error 
  550. soundSupportNotAvailableErr        EQU        -2056                ; QT for Windows error 
  551. unsupportedAuxiliaryImportData    EQU        -2057
  552. auxiliaryExportDataUnavailable    EQU        -2058
  553. samplesAlreadyInMediaErr        EQU        -2059
  554. movieTextNotFoundErr            EQU        -2062
  555. invalidSpriteWorldPropertyErr    EQU        -2064
  556. invalidSpritePropertyErr        EQU        -2065
  557. gWorldsNotSameDepthAndSizeErr    EQU        -2066
  558. invalidSpriteIndexErr            EQU        -2067
  559. invalidImageIndexErr            EQU        -2068
  560. ;  QuickTime VR Errors 
  561.  
  562. notAQTVRMovieErr                EQU        -30540
  563. constraintReachedErr            EQU        -30541
  564. callNotSupportedByNodeErr        EQU        -30542
  565. selectorNotSupportedByNodeErr    EQU        -30543
  566. invalidNodeIDErr                EQU        -30544
  567. invalidViewStateErr                EQU        -30545
  568. timeNotInViewErr                EQU        -30546
  569. propertyNotSupportedByNodeErr    EQU        -30547
  570. settingNotSupportedByNodeErr    EQU        -30548
  571. limitReachedErr                    EQU        -30549
  572. invalidNodeFormatErr            EQU        -30550
  573. invalidHotSpotIDErr                EQU        -30551
  574. noMemoryNodeFailedInitialize    EQU        -30552
  575.  
  576. cannotFindAtomErr                EQU        -2101
  577. notLeafAtomErr                    EQU        -2102
  578. atomsNotOfSameTypeErr            EQU        -2103
  579. atomIndexInvalidErr                EQU        -2104
  580. duplicateAtomTypeAndIDErr        EQU        -2105
  581. invalidAtomErr                    EQU        -2106
  582. invalidAtomContainerErr            EQU        -2107
  583. invalidAtomTypeErr                EQU        -2108
  584.  
  585. digiUnimpErr                    EQU        -2201                ; feature unimplemented 
  586. qtParamErr                        EQU        -2202                ; bad input parameter (out of range, etc) 
  587. matrixErr                        EQU        -2203                ; bad matrix, digitizer did nothing 
  588. notExactMatrixErr                EQU        -2204                ; warning of bad matrix, digitizer did its best 
  589. noMoreKeyColorsErr                EQU        -2205                ; all key indexes in use 
  590. notExactSizeErr                    EQU        -2206                ; Can’t do exact size requested 
  591. badDepthErr                        EQU        -2207                ; Can’t digitize into this depth 
  592. noDMAErr                        EQU        -2208                ; Can’t do DMA digitizing (i.e. can't go to requested dest 
  593. badCallOrderErr                    EQU        -2209                ; Usually due to a status call being called prior to being setup first 
  594.  
  595. ;  NameRegistry error codes 
  596.  
  597. nrLockedErr                        EQU        -2536
  598. nrNotEnoughMemoryErr            EQU        -2537
  599. nrInvalidNodeErr                EQU        -2538
  600. nrNotFoundErr                    EQU        -2539
  601. nrNotCreatedErr                    EQU        -2540
  602. nrNameErr                        EQU        -2541
  603. nrNotSlotDeviceErr                EQU        -2542
  604. nrDataTruncatedErr                EQU        -2543
  605. nrPowerErr                        EQU        -2544
  606. nrPowerSwitchAbortErr            EQU        -2545
  607. nrTypeMismatchErr                EQU        -2546
  608. nrNotModifiedErr                EQU        -2547
  609. nrOverrunErr                    EQU        -2548
  610. nrResultCodeBase                EQU        -2549
  611. nrPathNotFound                    EQU        -2550                ; a path component lookup failed 
  612. nrPathBufferTooSmall            EQU        -2551                ; buffer for path is too small 
  613. nrInvalidEntryIterationOp        EQU        -2552                ; invalid entry iteration operation 
  614. nrPropertyAlreadyExists            EQU        -2553                ; property already exists 
  615. nrIterationDone                    EQU        -2554                ; iteration operation is done 
  616. nrExitedIteratorScope            EQU        -2555                ; outer scope of iterator was exited 
  617. nrTransactionAborted            EQU        -2556                ; transaction was aborted 
  618. ; **************************************************************************
  619. ;    Script Error Codes
  620. ;*************************************************************************
  621.  
  622. ;  Runtime errors: 
  623.  
  624. errASCantConsiderAndIgnore        EQU        -2720
  625. errASCantCompareMoreThan32k        EQU        -2721                ; Parser/Compiler errors: 
  626. errASTerminologyNestingTooDeep    EQU        -2760
  627. errASIllegalFormalParameter        EQU        -2761
  628. errASParameterNotForEvent        EQU        -2762
  629. errASNoResultReturned            EQU        -2763                ;     The range -2780 thru -2799 is reserved for dialect specific error codes. (Error codes from different dialects may overlap.) 
  630. errASInconsistentNames            EQU        -2780                ;     English errors: 
  631. ; Component Manager & component errors
  632.  
  633. invalidComponentID                EQU        -3000
  634. validInstancesExist                EQU        -3001
  635. componentNotCaptured            EQU        -3002
  636. componentDontRegister            EQU        -3003
  637. ;  Color Picker errors
  638.  
  639. firstPickerError                EQU        -4000
  640. invalidPickerType                EQU        -4000
  641. requiredFlagsDontMatch            EQU        -4001
  642. pickerResourceError                EQU        -4002
  643. cantLoadPicker                    EQU        -4003
  644. cantCreatePickerWindow            EQU        -4004
  645. cantLoadPackage                    EQU        -4005
  646. pickerCantLive                    EQU        -4006
  647. colorSyncNotInstalled            EQU        -4007
  648. badProfileError                    EQU        -4008
  649. noHelpForItem                    EQU        -4009
  650. ; Text Engines, TSystemTextEngines, HIEditText error coded
  651.  
  652. errUnknownAttributeTag            EQU        -5240
  653. errMarginWilllNotFit            EQU        -5241
  654. errNotInImagingMode                EQU        -5242
  655. errAlreadyInImagingMode            EQU        -5243
  656. errEngineNotFound                EQU        -5244
  657. errIteratorReachedEnd            EQU        -5245
  658. errInvalidRange                    EQU        -5246
  659. errOffsetNotOnElementBounday    EQU        -5247
  660. errNoHiliteText                    EQU        -5248
  661. errEmptyScrap                    EQU        -5249
  662. errReadOnlyText                    EQU        -5250
  663. errUnknownElement                EQU        -5251
  664. errNonContiuousAttribute        EQU        -5252
  665. errCannotUndo                    EQU        -5253
  666. ;  NumberFormatting error codes
  667.  
  668. numberFormattingNotANumberErr    EQU        -5200
  669. numberFormattingOverflowInDestinationErr EQU -5201
  670. numberFormattingBadNumberFormattingObjectErr EQU -5202
  671. numberFormattingSpuriousCharErr    EQU        -5203
  672. numberFormattingLiteralMissingErr EQU    -5204
  673. numberFormattingDelimiterMissingErr EQU    -5205
  674. numberFormattingEmptyFormatErr    EQU        -5206
  675. numberFormattingBadFormatErr    EQU        -5207
  676. numberFormattingBadOptionsErr    EQU        -5028
  677. numberFormattingBadTokenErr        EQU        -5209
  678. numberFormattingUnOrdredCurrencyRangeErr EQU -5210
  679. numberFormattingBadCurrencyPositionErr EQU -5211
  680. numberFortmattingNotADigitErr    EQU        -5212
  681. ;  TextParser error codes
  682.  
  683. textParserBadParamErr            EQU        -5220
  684. textParserObjectNotFoundErr        EQU        -5221
  685. textParserBadTokenValueErr        EQU        -5222
  686. textParserBadParserObjectErr    EQU        -5223
  687. textParserParamErr                EQU        -5224
  688. textParserNoMoreTextErr            EQU        -5225
  689. textParserBadTextLanguageErr    EQU        -5226
  690. textParserBadTextEncodingErr    EQU        -5227
  691. textParserNoSuchTokenFoundErr    EQU        -5228
  692. textParserNoMoreTokensErr        EQU        -5229
  693.  
  694. ;  Collection Manager errors 
  695.  
  696. collectionItemLockedErr            EQU        -5750
  697. collectionItemNotFoundErr        EQU        -5751
  698. collectionIndexRangeErr            EQU        -5752
  699. collectionVersionErr            EQU        -5753
  700. ;  Error & status codes for general text and text encoding conversion
  701.  
  702.  
  703.                                                             ; general text errors
  704. kTextUnsupportedEncodingErr        EQU        -8738                ; specified encoding not supported for this operation
  705. kTextMalformedInputErr            EQU        -8739                ; in DBCS, for example, high byte followed by invalid low byte
  706. kTextUndefinedElementErr        EQU        -8740                ; text conversion errors
  707. kTECMissingTableErr                EQU        -8745
  708. kTECTableChecksumErr            EQU        -8746
  709. kTECTableFormatErr                EQU        -8747
  710. kTECCorruptConverterErr            EQU        -8748                ; invalid converter object reference
  711. kTECNoConversionPathErr            EQU        -8749
  712. kTECBufferBelowMinimumSizeErr    EQU        -8750                ; output buffer too small to allow processing of first input text element
  713. kTECArrayFullErr                EQU        -8751                ; supplied name buffer or TextRun, TextEncoding, or UnicodeMapping array is too small
  714. kTECBadTextRunErr                EQU        -8752
  715. kTECPartialCharErr                EQU        -8753                ; input buffer ends in the middle of a multibyte character, conversion stopped
  716. kTECUnmappableElementErr        EQU        -8754
  717. kTECIncompleteElementErr        EQU        -8755                ; text element may be incomplete or is too long for internal buffers
  718. kTECDirectionErr                EQU        -8756                ; direction stack overflow, etc.
  719. kTECGlobalsUnavailableErr        EQU        -8770                ; globals have already been deallocated (premature TERM)
  720. kTECItemUnavailableErr            EQU        -8771                ; item (e.g. name) not available for specified region (& encoding if relevant)
  721.                                                             ; text conversion status codes
  722. kTECUsedFallbacksStatus            EQU        -8783
  723. kTECNeedFlushStatus                EQU        -8784
  724. kTECOutputBufferFullStatus        EQU        -8785                ; output buffer has no room for conversion of next input text element (partial conversion)
  725.                                                             ; deprecated error & status codes for low-level converter
  726. unicodeChecksumErr                EQU        -8769
  727. unicodeNoTableErr                EQU        -8768
  728. unicodeVariantErr                EQU        -8767
  729. unicodeFallbacksErr                EQU        -8766
  730. unicodePartConvertErr            EQU        -8765
  731. unicodeBufErr                    EQU        -8764
  732. unicodeCharErr                    EQU        -8763
  733. unicodeElementErr                EQU        -8762
  734. unicodeNotFoundErr                EQU        -8761
  735. unicodeTableFormatErr            EQU        -8760
  736. unicodeDirectionErr                EQU        -8759
  737. unicodeContextualErr            EQU        -8758
  738. unicodeTextEncodingDataErr        EQU        -8757
  739.  
  740.  
  741.  
  742. codecErr                        EQU        -8960
  743. noCodecErr                        EQU        -8961
  744. codecUnimpErr                    EQU        -8962
  745. codecSizeErr                    EQU        -8963
  746. codecScreenBufErr                EQU        -8964
  747. codecImageBufErr                EQU        -8965
  748. codecSpoolErr                    EQU        -8966
  749. codecAbortErr                    EQU        -8967
  750. codecWouldOffscreenErr            EQU        -8968
  751. codecBadDataErr                    EQU        -8969
  752. codecDataVersErr                EQU        -8970
  753. codecExtensionNotFoundErr        EQU        -8971
  754. scTypeNotFoundErr                EQU        -8971
  755. codecConditionErr                EQU        -8972
  756. codecOpenErr                    EQU        -8973
  757. codecCantWhenErr                EQU        -8974
  758. codecCantQueueErr                EQU        -8975
  759. codecNothingToBlitErr            EQU        -8976
  760. codecNoMemoryPleaseWaitErr        EQU        -8977
  761. noDeviceForChannel                EQU        -9400
  762. grabTimeComplete                EQU        -9401
  763. cantDoThatInCurrentMode            EQU        -9402
  764. notEnoughMemoryToGrab            EQU        -9403
  765. notEnoughDiskSpaceToGrab        EQU        -9404
  766. couldntGetRequiredComponent        EQU        -9405
  767. badSGChannel                    EQU        -9406
  768. seqGrabInfoNotAvailable            EQU        -9407
  769. deviceCantMeetRequest            EQU        -9408
  770. badControllerHeight                EQU        -9994
  771. editingNotAllowed                EQU        -9995
  772. controllerBoundsNotExact        EQU        -9996
  773. cannotSetWidthOfAttachedController EQU    -9997
  774. controllerHasFixedHeight        EQU        -9998
  775. cannotMoveAttachedController    EQU        -9999
  776. ;  AERegistry Errors 
  777.  
  778. errAEBadKeyForm                    EQU        -10002
  779. errAECantHandleClass            EQU        -10010
  780. errAECantSupplyType                EQU        -10009
  781. errAECantUndo                    EQU        -10015
  782. errAEEventFailed                EQU        -10000
  783. errAEIndexTooLarge                EQU        -10007
  784. errAEInTransaction                EQU        -10011
  785. errAELocalOnly                    EQU        -10016
  786. errAENoSuchTransaction            EQU        -10012
  787. errAENotAnElement                EQU        -10008
  788. errAENotASingleObject            EQU        -10014
  789. errAENotModifiable                EQU        -10003
  790. errAENoUserSelection            EQU        -10013
  791. errAEPrivilegeError                EQU        -10004
  792. errAEReadDenied                    EQU        -10005
  793. errAETypeError                    EQU        -10001
  794. errAEWriteDenied                EQU        -10006
  795. ;  TELErr 
  796.  
  797. telGenericError                    EQU        -1
  798. telNoErr                        EQU        0
  799. telNoTools                        EQU        8                    ; no telephone tools found in extension folder 
  800. telBadTermErr                    EQU        -10001                ; invalid TELHandle or handle not found
  801. telBadDNErr                        EQU        -10002                ; TELDNHandle not found or invalid 
  802. telBadCAErr                        EQU        -10003                ; TELCAHandle not found or invalid 
  803. telBadHandErr                    EQU        -10004                ; bad handle specified 
  804. telBadProcErr                    EQU        -10005                ; bad msgProc specified 
  805. telCAUnavail                    EQU        -10006                ; a CA is not available 
  806. telNoMemErr                        EQU        -10007                ; no memory to allocate handle 
  807. telNoOpenErr                    EQU        -10008                ; unable to open terminal 
  808. telBadHTypeErr                    EQU        -10010                ; bad hook type specified 
  809. telHTypeNotSupp                    EQU        -10011                ; hook type not supported by this tool 
  810. telBadLevelErr                    EQU        -10012                ; bad volume level setting 
  811. telBadVTypeErr                    EQU        -10013                ; bad volume type error 
  812. telVTypeNotSupp                    EQU        -10014                ; volume type not supported by this tool
  813. telBadAPattErr                    EQU        -10015                ; bad alerting pattern specified 
  814. telAPattNotSupp                    EQU        -10016                ; alerting pattern not supported by tool
  815. telBadIndex                        EQU        -10017                ; bad index specified 
  816. telIndexNotSupp                    EQU        -10018                ; index not supported by this tool 
  817. telBadStateErr                    EQU        -10019                ; bad device state specified 
  818. telStateNotSupp                    EQU        -10020                ; device state not supported by tool 
  819. telBadIntExt                    EQU        -10021                ; bad internal external error 
  820. telIntExtNotSupp                EQU        -10022                ; internal external type not supported by this tool 
  821. telBadDNDType                    EQU        -10023                ; bad DND type specified 
  822. telDNDTypeNotSupp                EQU        -10024                ; DND type is not supported by this tool 
  823. telFeatNotSub                    EQU        -10030                ; feature not subscribed 
  824. telFeatNotAvail                    EQU        -10031                ; feature subscribed but not available 
  825. telFeatActive                    EQU        -10032                ; feature already active 
  826. telFeatNotSupp                    EQU        -10033                ; feature program call not supported by this tool 
  827. telConfLimitErr                    EQU        -10040                ; limit specified is too high for this configuration 
  828. telConfNoLimit                    EQU        -10041                ; no limit was specified but required
  829. telConfErr                        EQU        -10042                ; conference was not prepared 
  830. telConfRej                        EQU        -10043                ; conference request was rejected 
  831. telTransferErr                    EQU        -10044                ; transfer not prepared 
  832. telTransferRej                    EQU        -10045                ; transfer request rejected 
  833. telCBErr                        EQU        -10046                ; call back feature not set previously 
  834. telConfLimitExceeded            EQU        -10047                ; attempt to exceed switch conference limits 
  835. telBadDNType                    EQU        -10050                ; DN type invalid 
  836. telBadPageID                    EQU        -10051                ; bad page ID specified
  837. telBadIntercomID                EQU        -10052                ; bad intercom ID specified 
  838. telBadFeatureID                    EQU        -10053                ; bad feature ID specified 
  839. telBadFwdType                    EQU        -10054                ; bad fwdType specified 
  840. telBadPickupGroupID                EQU        -10055                ; bad pickup group ID specified 
  841. telBadParkID                    EQU        -10056                ; bad park id specified 
  842. telBadSelect                    EQU        -10057                ; unable to select or deselect DN 
  843. telBadBearerType                EQU        -10058                ; bad bearerType specified 
  844. telBadRate                        EQU        -10059                ; bad rate specified 
  845. telDNTypeNotSupp                EQU        -10060                ; DN type not supported by tool 
  846. telFwdTypeNotSupp                EQU        -10061                ; forward type not supported by tool 
  847. telBadDisplayMode                EQU        -10062                ; bad display mode specified 
  848. telDisplayModeNotSupp            EQU        -10063                ; display mode not supported by tool 
  849. telNoCallbackRef                EQU        -10064                ; no call back reference was specified, but is required 
  850. telAlreadyOpen                    EQU        -10070                ; terminal already open 
  851. telStillNeeded                    EQU        -10071                ; terminal driver still needed by someone else 
  852. telTermNotOpen                    EQU        -10072                ; terminal not opened via TELOpenTerm 
  853. telCANotAcceptable                EQU        -10080                ; CA not "acceptable" 
  854. telCANotRejectable                EQU        -10081                ; CA not "rejectable" 
  855. telCANotDeflectable                EQU        -10082                ; CA not "deflectable" 
  856. telPBErr                        EQU        -10090                ; parameter block error, bad format 
  857. telBadFunction                    EQU        -10091                ; bad msgCode specified 
  858.                                                             ;    telNoTools            = -10101,           unable to find any telephone tools 
  859. telNoSuchTool                    EQU        -10102                ; unable to find tool with name specified 
  860. telUnknownErr                    EQU        -10103                ; unable to set config 
  861. telNoCommFolder                    EQU        -10106                ; Communications/Extensions ƒ not found 
  862. telInitFailed                    EQU        -10107                ; initialization failed 
  863. telBadCodeResource                EQU        -10108                ; code resource not found 
  864. telDeviceNotFound                EQU        -10109                ; device not found 
  865. telBadProcID                    EQU        -10110                ; invalid procID 
  866. telValidateFailed                EQU        -10111                ; telValidate failed 
  867. telAutoAnsNotOn                    EQU        -10112                ; autoAnswer in not turned on 
  868. telDetAlreadyOn                    EQU        -10113                ; detection is already turned on 
  869. telBadSWErr                        EQU        -10114                ; Software not installed properly 
  870. telBadSampleRate                EQU        -10115                ; incompatible sample rate 
  871. telNotEnoughdspBW                EQU        -10116                ; not enough real-time for allocation 
  872.  
  873. ;  MP (multiprocessor API) error codes
  874.  
  875. kMPDeletedErr                    EQU        -29295
  876. kMPTimeoutErr                    EQU        -29296
  877. kMPTaskAbortedErr                EQU        -29297
  878. kMPInsufficientResourcesErr        EQU        -29298
  879. kMPInvalidIDErr                    EQU        -29299
  880.  
  881. ;  StringCompare error codes (in TextUtils range)
  882.  
  883. kCollateAttributesNotFoundErr    EQU        -29500
  884. kCollateInvalidOptions            EQU        -29501
  885. kCollateMissingUnicodeTableErr    EQU        -29502
  886. kCollateUnicodeConvertFailedErr    EQU        -29503
  887. kCollatePatternNotFoundErr        EQU        -29504
  888. kCollateInvalidChar                EQU        -29505
  889. kCollateBufferTooSmall            EQU        -29506
  890. kCollateInvalidCollationRef        EQU        -29507
  891.  
  892. ;  TextObjects error codes
  893.  
  894. textObjInvalidIndexErr            EQU        -29580
  895. textObjBufferTooSmallErr        EQU        -29581
  896. textObjObjectTooSmallErr        EQU        -29582
  897. textObjTextConversionFailedErr    EQU        -29583
  898. textObjMalformedObjectErr        EQU        -29584
  899. textObjAnnotationNotFoundErr    EQU        -29585
  900. textObjMoreAnnotationsErr        EQU        -29586
  901. textObjLanguageChangedErr        EQU        -29587
  902. textObjFontNotFoundErr            EQU        -29599
  903. ;  Locale Object Mgr errors
  904.  
  905. localeNotFoundErr                EQU        -30001
  906. localeObjectAttributeNotAvailErr EQU    -30002
  907. localeObjectNoNamesTableErr        EQU        -30005
  908. localeBadReferenceErr            EQU        -30006
  909. localeObjectNotFoundErr            EQU        -30007
  910. localeObjectInvalidReferenceErr    EQU        -30008
  911. localeObjectItemFoundIsLastErr    EQU        -30009
  912. localeObjectNameAttributeConflictErr EQU -30010
  913. localeObjectInvalidIteratorErr    EQU        -30020
  914. localeObjectNoNameErr            EQU        -30021
  915. localeObjectTagDataNotFoundErr    EQU        -30022
  916. localeObjectCannotDeleteSystemObjectErr EQU -30023
  917. localeCouldNotWriteLinkedObjectsErr EQU    -30024
  918. localeDuplicateErr                EQU        -30025
  919. localeObjectDefaultValueNotAvailableErr EQU -30026
  920. localeNoAssociatedDataTagsErr    EQU        -30027
  921. ;  Apple Location Manager Errors
  922.  
  923. kALMInternalErr                    EQU        -30049
  924. kALMLocationNotFoundErr            EQU        -30048
  925. kALMNoSuchModuleErr                EQU        -30047
  926. kALMModuleCommunicationErr        EQU        -30046
  927. kALMDuplicateModuleErr            EQU        -30045
  928. kALMInstallationErr                EQU        -30044
  929. kALMDeferSwitchErr                EQU        -30043
  930. kALMRebootFlagsLevelErr            EQU        -30042
  931.  
  932. badComponentInstance            EQU        $80008001
  933. badComponentSelector            EQU        $80008002
  934. ; Translation manager & Translation components
  935.  
  936. invalidTranslationPathErr        EQU        -3025                ;Source type to destination type not a valid path
  937. couldNotParseSourceFileErr        EQU        -3026                ;Source document does not contain source type
  938. noTranslationPathErr            EQU        -3030
  939. badTranslationSpecErr            EQU        -3031
  940. noPrefAppErr                    EQU        -3032
  941.  
  942. buf2SmallErr                    EQU        -3101
  943. noMPPErr                        EQU        -3102
  944. ckSumErr                        EQU        -3103
  945. extractErr                        EQU        -3104
  946. readQErr                        EQU        -3105
  947. atpLenErr                        EQU        -3106
  948. atpBadRsp                        EQU        -3107
  949. recNotFnd                        EQU        -3108
  950. sktClosedErr                    EQU        -3109
  951. afpAccessDenied                    EQU        -5000
  952. afpAuthContinue                    EQU        -5001
  953. afpBadUAM                        EQU        -5002
  954. afpBadVersNum                    EQU        -5003
  955. afpBitmapErr                    EQU        -5004
  956. afpCantMove                        EQU        -5005
  957. afpDenyConflict                    EQU        -5006
  958. afpDirNotEmpty                    EQU        -5007
  959. afpDiskFull                        EQU        -5008
  960. afpEofError                        EQU        -5009
  961. afpFileBusy                        EQU        -5010
  962. afpFlatVol                        EQU        -5011
  963. afpItemNotFound                    EQU        -5012
  964. afpLockErr                        EQU        -5013
  965. afpMiscErr                        EQU        -5014
  966. afpNoMoreLocks                    EQU        -5015
  967.  
  968. afpNoServer                        EQU        -5016
  969. afpObjectExists                    EQU        -5017
  970. afpObjectNotFound                EQU        -5018
  971. afpParmErr                        EQU        -5019
  972. afpRangeNotLocked                EQU        -5020
  973. afpRangeOverlap                    EQU        -5021
  974. afpSessClosed                    EQU        -5022
  975. afpUserNotAuth                    EQU        -5023
  976. afpCallNotSupported                EQU        -5024
  977. afpObjectTypeErr                EQU        -5025
  978. afpTooManyFilesOpen                EQU        -5026
  979. afpServerGoingDown                EQU        -5027
  980. afpCantRename                    EQU        -5028
  981. afpDirNotFound                    EQU        -5029
  982. afpIconTypeError                EQU        -5030
  983. afpVolLocked                    EQU        -5031                ;Volume is Read-Only
  984. afpObjectLocked                    EQU        -5032                ;Object is M/R/D/W inhibited
  985. afpContainsSharedErr            EQU        -5033                ;the folder being shared contains a shared folder
  986. afpIDNotFound                    EQU        -5034
  987. afpIDExists                        EQU        -5035
  988.  
  989. afpDiffVolErr                    EQU        -5036
  990. afpCatalogChanged                EQU        -5037
  991. afpSameObjectErr                EQU        -5038
  992. afpBadIDErr                        EQU        -5039
  993. afpPwdSameErr                    EQU        -5040                ;someone tried to change their password to the same password on a mantadory password change
  994. afpPwdTooShortErr                EQU        -5041                ;the password being set is too short: there is a minimum length that must be met or exceeded
  995. afpPwdExpiredErr                EQU        -5042                ;the password being used is too old: this requires the user to change the password before log-in can continue
  996. afpInsideSharedErr                EQU        -5043                ;the folder being shared is inside a shared folder OR the folder contains a shared folder and is being moved into a shared folder 
  997.                                                             ;  OR the folder contains a shared folder and is being moved into the descendent of a shared folder.
  998. afpInsideTrashErr                EQU        -5044                ;the folder being shared is inside the trash folder 
  999.                                                             ;  OR the shared folder is being moved into the trash folder OR the folder is being moved to the trash and it contains a shared folder 
  1000. afpBadDirIDType                    EQU        -5060
  1001. afpCantMountMoreSrvre            EQU        -5061
  1002. afpAlreadyMounted                EQU        -5062
  1003. afpSameNodeErr                    EQU        -5063                ;Display Manager error codes (-6220...-6269)
  1004. kDMGenErr                        EQU        -6220                ;Unexpected Error
  1005.                                                             ; Mirroring-Specific Errors 
  1006. kDMMirroringOnAlready            EQU        -6221                ;Returned by all calls that need mirroring to be off to do their thing.
  1007. kDMWrongNumberOfDisplays        EQU        -6222                ;Can only handle 2 displays for now.
  1008. kDMMirroringBlocked                EQU        -6223                ;DMBlockMirroring() has been called.
  1009. kDMCantBlock                    EQU        -6224                ;Mirroring is already on, can’t Block now (call DMUnMirror() first).
  1010. kDMMirroringNotOn                EQU        -6225                ;Returned by all calls that need mirroring to be on to do their thing.
  1011.                                                             ; Other Display Manager Errors 
  1012. kSysSWTooOld                    EQU        -6226                ;Missing critical pieces of System Software.
  1013. kDMSWNotInitializedErr            EQU        -6227                ;Required software not initialized (eg windowmanager or display mgr).
  1014. kDMDriverNotDisplayMgrAwareErr    EQU        -6228                ;Video Driver does not support display manager.
  1015. kDMDisplayNotFoundErr            EQU        -6229                ;Could not find item (will someday remove).
  1016. kDMNotFoundErr                    EQU        -6229                ;Could not find item.
  1017. kDMDisplayAlreadyInstalledErr    EQU        -6230                ;Attempt to add an already installed display.
  1018. kDMMainDisplayCannotMoveErr        EQU        -6231                ;Trying to move main display (or a display mirrored to it) 
  1019. kDMNoDeviceTableclothErr        EQU        -6231                ;obsolete
  1020.                                                             ;Gestalt error codes
  1021. gestaltUnknownErr                EQU        -5550                ;value returned if Gestalt doesn't know the answer
  1022. gestaltUndefSelectorErr            EQU        -5551                ;undefined selector was passed to Gestalt
  1023. gestaltDupSelectorErr            EQU        -5552                ;tried to add an entry that already existed
  1024. gestaltLocationErr                EQU        -5553                ;gestalt function ptr wasn't in sysheap
  1025.                                                             ;PPC errors
  1026. notInitErr                        EQU        -900                ;PPCToolBox not initialized
  1027. nameTypeErr                        EQU        -902                ;Invalid or inappropriate locationKindSelector in locationName
  1028. noPortErr                        EQU        -903                ;Unable to open port or bad portRefNum
  1029. noGlobalsErr                    EQU        -904                ;The system is hosed, better re-boot
  1030. localOnlyErr                    EQU        -905                ;Network activity is currently disabled
  1031. destPortErr                        EQU        -906                ;Port does not exist at destination
  1032. sessTableErr                    EQU        -907                ;Out of session tables, try again later
  1033. noSessionErr                    EQU        -908                ;Invalid session reference number
  1034. badReqErr                        EQU        -909                ;bad parameter or invalid state for operation
  1035. portNameExistsErr                EQU        -910                ;port is already open (perhaps in another app)
  1036. noUserNameErr                    EQU        -911                ;user name unknown on destination machine
  1037.  
  1038. userRejectErr                    EQU        -912                ;Destination rejected the session request
  1039. noMachineNameErr                EQU        -913                ;user hasn't named his Macintosh in the Network Setup Control Panel
  1040. noToolboxNameErr                EQU        -914                ;A system resource is missing, not too likely
  1041. noResponseErr                    EQU        -915                ;unable to contact destination
  1042. portClosedErr                    EQU        -916                ;port was closed
  1043. sessClosedErr                    EQU        -917                ;session was closed
  1044. badPortNameErr                    EQU        -919                ;PPCPortRec malformed
  1045. noDefaultUserErr                EQU        -922                ;user hasn't typed in owners name in Network Setup Control Pannel
  1046. notLoggedInErr                    EQU        -923                ;The default userRefNum does not yet exist
  1047. noUserRefErr                    EQU        -924                ;unable to create a new userRefNum
  1048. networkErr                        EQU        -925                ;An error has occured in the network, not too likely
  1049. noInformErr                        EQU        -926                ;PPCStart failed because destination did not have inform pending
  1050. authFailErr                        EQU        -927                ;unable to authenticate user at destination
  1051. noUserRecErr                    EQU        -928                ;Invalid user reference number
  1052. badServiceMethodErr                EQU        -930                ;illegal service type, or not supported
  1053. badLocNameErr                    EQU        -931                ;location name malformed
  1054. guestNotAllowedErr                EQU        -932                ;destination port requires authentication
  1055. noMaskFoundErr                    EQU        -1000                ;Icon Utilties Error
  1056.  
  1057. dsBusError                        EQU        1                    ;bus error
  1058. dsAddressErr                    EQU        2                    ;address error
  1059. dsIllInstErr                    EQU        3                    ;illegal instruction error
  1060. dsZeroDivErr                    EQU        4                    ;zero divide error
  1061. dsChkErr                        EQU        5                    ;check trap error
  1062. dsOvflowErr                        EQU        6                    ;overflow trap error
  1063. dsPrivErr                        EQU        7                    ;privilege violation error
  1064. dsTraceErr                        EQU        8                    ;trace mode error
  1065. dsLineAErr                        EQU        9                    ;line 1010 trap error
  1066. dsLineFErr                        EQU        10                    ;line 1111 trap error
  1067. dsMiscErr                        EQU        11                    ;miscellaneous hardware exception error
  1068. dsCoreErr                        EQU        12                    ;unimplemented core routine error
  1069. dsIrqErr                        EQU        13                    ;uninstalled interrupt error
  1070. dsIOCoreErr                        EQU        14                    ;IO Core Error
  1071. dsLoadErr                        EQU        15                    ;Segment Loader Error
  1072. dsFPErr                            EQU        16                    ;Floating point error
  1073. dsNoPackErr                        EQU        17                    ;package 0 not present
  1074. dsNoPk1                            EQU        18                    ;package 1 not present
  1075. dsNoPk2                            EQU        19                    ;package 2 not present
  1076.  
  1077. dsNoPk3                            EQU        20                    ;package 3 not present
  1078. dsNoPk4                            EQU        21                    ;package 4 not present
  1079. dsNoPk5                            EQU        22                    ;package 5 not present
  1080. dsNoPk6                            EQU        23                    ;package 6 not present
  1081. dsNoPk7                            EQU        24                    ;package 7 not present
  1082. dsMemFullErr                    EQU        25                    ;out of memory!
  1083. dsBadLaunch                        EQU        26                    ;can't launch file
  1084. dsFSErr                            EQU        27                    ;file system map has been trashed
  1085. dsStknHeap                        EQU        28                    ;stack has moved into application heap
  1086. negZcbFreeErr                    EQU        33                    ;ZcbFree has gone negative
  1087. dsFinderErr                        EQU        41                    ;can't load the Finder error
  1088. dsBadSlotInt                    EQU        51                    ;unserviceable slot interrupt
  1089. dsBadSANEOpcode                    EQU        81                    ;bad opcode given to SANE Pack4
  1090. dsBadPatchHeader                EQU        83                    ;SetTrapAddress saw the “come-from” header
  1091. menuPrgErr                        EQU        84                    ;happens when a menu is purged
  1092. dsMBarNFnd                        EQU        85                    ;Menu Manager Errors
  1093. dsHMenuFindErr                    EQU        86                    ;Menu Manager Errors
  1094. dsWDEFNotFound                    EQU        87                    ;could not load WDEF
  1095. dsCDEFNotFound                    EQU        88                    ;could not load CDEF
  1096. dsMDEFNotFound                    EQU        89                    ;could not load MDEF
  1097.  
  1098. dsNoFPU                            EQU        90                    ;an FPU instruction was executed and the machine doesn’t have one
  1099. dsNoPatch                        EQU        98                    ;Can't patch for particular Model Mac
  1100. dsBadPatch                        EQU        99                    ;Can't load patch resource
  1101. dsParityErr                        EQU        101                    ;memory parity error
  1102. dsOldSystem                        EQU        102                    ;System is too old for this ROM
  1103. ds32BitMode                        EQU        103                    ;booting in 32-bit on a 24-bit sys
  1104. dsNeedToWriteBootBlocks            EQU        104                    ;need to write new boot blocks
  1105. dsNotEnoughRAMToBoot            EQU        105                    ;must have at least 1.5MB of RAM to boot 7.0
  1106. dsBufPtrTooLow                    EQU        106                    ;bufPtr moved too far during boot
  1107. dsVMDeferredFuncTableFull        EQU        112                    ;VM's DeferUserFn table is full
  1108. dsVMBadBackingStore                EQU        113                    ;Error occurred while reading or writing the VM backing-store file
  1109. dsCantHoldSystemHeap            EQU        114                    ;Unable to hold the system heap during boot
  1110. dsReinsert                        EQU        30                    ;request user to reinsert off-line volume
  1111. shutDownAlert                    EQU        42                    ;handled like a shutdown error
  1112. dsShutDownOrRestart                EQU        20000                ;user choice between ShutDown and Restart
  1113. dsSwitchOffOrRestart            EQU        20001                ;user choice between switching off and Restart
  1114. dsForcedQuit                    EQU        20002                ;allow the user to ExitToShell, return if Cancel
  1115. dsRemoveDisk                    EQU        20003                ;request user to remove disk from manual eject drive
  1116. dsDirtyDisk                        EQU        20004                ;request user to return a manually-ejected dirty disk
  1117. dsShutDownOrResume                EQU        20109                ;allow user to return to Finder or ShutDown
  1118. dsSCSIWarn                        EQU        20010                ;Portable SCSI adapter warning.
  1119. dsMBSysError                    EQU        29200                ;Media Bay replace warning.
  1120. dsMBFlpySysError                EQU        29201                ;Media Bay, floppy replace warning.
  1121. dsMBATASysError                    EQU        29202                ;Media Bay, ATA replace warning.
  1122. dsMBATAPISysError                EQU        29203                ;Media Bay, ATAPI replace warning...
  1123. dsMBExternFlpySysError            EQU        29204                ;Media Bay, external floppy drive reconnect warning
  1124.  
  1125. ;      System Errors that are used after MacsBug is loaded to put up dialogs since these should not 
  1126. ;      cause MacsBug to stop, they must be in the range (30, 42, 16384-32767) negative numbers add 
  1127. ;      to an existing dialog without putting up a whole new dialog 
  1128.  
  1129.  
  1130.  
  1131. dsNoExtsMacsBug                    EQU        -1                    ;not a SysErr, just a placeholder 
  1132. dsNoExtsDisassembler            EQU        -2                    ;not a SysErr, just a placeholder 
  1133. dsMacsBugInstalled                EQU        -10                    ;say “MacsBug Installed”
  1134. dsDisassemblerInstalled            EQU        -11                    ;say “Disassembler Installed”
  1135. dsExtensionsDisabled            EQU        -13                    ;say “Extensions Disabled”
  1136. dsGreeting                        EQU        40                    ;welcome to Macintosh greeting
  1137. dsSysErr                        EQU        32767                ;general system error
  1138.                                                             ;old names here for compatibility’s sake
  1139. WDEFNFnd                        EQU        87
  1140.  
  1141. CDEFNFnd                        EQU        88
  1142. dsNotThe1                        EQU        31                    ;not the disk I wanted
  1143. dsBadStartupDisk                EQU        42                    ;unable to mount boot volume (sad Mac only)
  1144. dsSystemFileErr                    EQU        43                    ;can’t find System file to open (sad Mac only)
  1145. dsHD20Installed                    EQU        -12                    ;say “HD20 Startup”
  1146. mBarNFnd                        EQU        -126                ;system error code for MBDF not found
  1147. hMenuFindErr                    EQU        -127                ;could not find HMenu's parent in MenuKey
  1148. userBreak                        EQU        -490                ;user debugger break
  1149. strUserBreak                    EQU        -491                ;user debugger break; display string on stack
  1150. exUserBreak                        EQU        -492                ;user debugger break; execute debugger commands on stack
  1151. ;   Kernel Error Codes  
  1152.  
  1153. kernelIncompleteErr                EQU        -2401
  1154. kernelCanceledErr                EQU        -2402
  1155. kernelOptionsErr                EQU        -2403
  1156. kernelPrivilegeErr                EQU        -2404
  1157. kernelUnsupportedErr            EQU        -2405
  1158. kernelObjectExistsErr            EQU        -2406
  1159. kernelWritePermissionErr        EQU        -2407
  1160. kernelReadPermissionErr            EQU        -2408
  1161. kernelExecutePermissionErr        EQU        -2409
  1162. kernelDeletePermissionErr        EQU        -2410
  1163. kernelExecutionLevelErr            EQU        -2411
  1164. kernelAttributeErr                EQU        -2412
  1165. kernelAsyncSendLimitErr            EQU        -2413
  1166. kernelAsyncReceiveLimitErr        EQU        -2414
  1167. kernelTimeoutErr                EQU        -2415
  1168. kernelInUseErr                    EQU        -2416
  1169. kernelTerminatedErr                EQU        -2417
  1170. kernelExceptionErr                EQU        -2418
  1171. kernelIDErr                        EQU        -2419
  1172. kernelAlreadyFreeErr            EQU        -2421
  1173. kernelReturnValueErr            EQU        -2422
  1174. kernelUnrecoverableErr            EQU        -2499
  1175.  
  1176. ;   The System 8 form of CFM errors.
  1177. ;   The preferred spelling for Code Fragment Manager errors:
  1178.  
  1179.  
  1180.  
  1181. cfragFirstErrCode                EQU        -2800                ; The first value in the range of CFM errors.
  1182. cfragContextIDErr                EQU        -2800                ; The context ID was not valid.
  1183. cfragConnectionIDErr            EQU        -2801                ; The connection ID was not valid.
  1184. cfragNoSymbolErr                EQU        -2802                ; The specified symbol was not found.
  1185. cfragNoSectionErr                EQU        -2803                ; The specified section was not found.
  1186. cfragNoLibraryErr                EQU        -2804                ; The named library was not found.
  1187. cfragDupRegistrationErr            EQU        -2805                ; The registration name was already in use.
  1188. cfragFragmentFormatErr            EQU        -2806                ; A fragment's container format is unknown.
  1189. cfragUnresolvedErr                EQU        -2807                ; A fragment had "hard" unresolved imports.
  1190. cfragNoPositionErr                EQU        -2808                ; The registration insertion point was not found.
  1191. cfragNoPrivateMemErr            EQU        -2809                ; Out of memory for internal bookkeeping.
  1192. cfragNoClientMemErr                EQU        -2810                ; Out of memory for fragment mapping or section instances.
  1193. cfragNoIDsErr                    EQU        -2811                ; No more CFM IDs for contexts, connections, etc.
  1194. cfragInitOrderErr                EQU        -2812                ; 
  1195. cfragImportTooOldErr            EQU        -2813                ; An import library was too old for a client.
  1196. cfragImportTooNewErr            EQU        -2814                ; An import library was too new for a client.
  1197. cfragInitLoopErr                EQU        -2815                ; Circularity in required initialization order.
  1198. cfragInitAtBootErr                EQU        -2816                ; A boot library has an initialization function.  (System 7 only)
  1199. cfragLibConnErr                    EQU        -2817                ; 
  1200. cfragCFMStartupErr                EQU        -2818                ; Internal error during CFM initialization.
  1201. cfragCFMInternalErr                EQU        -2819                ; An internal inconstistancy has been detected.
  1202. cfragFragmentCorruptErr            EQU        -2820                ; A fragment's container was corrupt (known format).
  1203. cfragInitFunctionErr            EQU        -2821                ; A fragment's initialization routine returned an error.
  1204. cfragNoApplicationErr            EQU        -2822                ; No application member found in the cfrg resource.
  1205. cfragArchitectureErr            EQU        -2823                ; A fragment has an unacceptable architecture.
  1206. cfragFragmentUsageErr            EQU        -2824                ; A semantic error in usage of the fragment.
  1207. cfragFileSizeErr                EQU        -2825                ; A file was too large to be mapped.
  1208. cfragNotClosureErr                EQU        -2826                ; The closure ID was actually a connection ID.
  1209. cfragNoRegistrationErr            EQU        -2827                ; The registration name was not found.
  1210. cfragContainerIDErr                EQU        -2828                ; The fragment container ID was not valid.
  1211. cfragClosureIDErr                EQU        -2829                ; The closure ID was not valid.
  1212. cfragAbortClosureErr            EQU        -2830                ; Used by notification handlers to abort a closure.
  1213.  
  1214. cfragLastErrCode                EQU        -2899                ; The last value in the range of CFM errors.
  1215.     IF OLDROUTINENAMES THEN
  1216. ;  The old spelling for Code Fragment Manager errors, kept for compatibility:
  1217.  
  1218. fragContextNotFound                EQU        -2800
  1219. fragConnectionIDNotFound        EQU        -2801
  1220. fragSymbolNotFound                EQU        -2802
  1221. fragSectionNotFound                EQU        -2803
  1222. fragLibNotFound                    EQU        -2804
  1223. fragDupRegLibName                EQU        -2805
  1224. fragFormatUnknown                EQU        -2806
  1225. fragHadUnresolveds                EQU        -2807
  1226. fragNoMem                        EQU        -2809
  1227. fragNoAddrSpace                    EQU        -2810
  1228. fragNoContextIDs                EQU        -2811
  1229. fragObjectInitSeqErr            EQU        -2812
  1230. fragImportTooOld                EQU        -2813
  1231. fragImportTooNew                EQU        -2814
  1232. fragInitLoop                    EQU        -2815
  1233. fragInitRtnUsageErr                EQU        -2816
  1234. fragLibConnErr                    EQU        -2817
  1235. fragMgrInitErr                    EQU        -2818
  1236. fragConstErr                    EQU        -2819
  1237. fragCorruptErr                    EQU        -2820
  1238. fragUserInitProcErr                EQU        -2821
  1239. fragAppNotFound                    EQU        -2822
  1240. fragArchError                    EQU        -2823
  1241. fragInvalidFragmentUsage        EQU        -2824
  1242. fragLastErrCode                    EQU        -2899
  1243.     ENDIF    ; OLDROUTINENAMES
  1244. ;  System Notification Service error codes 
  1245.  
  1246. snsNoSuchTypeErr                EQU        -9000
  1247. snsNoSuchSubscriptionErr        EQU        -9001
  1248. snsNoSuchKindErr                EQU        -9002
  1249. snsDistributorGoneErr            EQU        -9003
  1250. snsQueueEmptyErr                EQU        -9004
  1251. snsNoRequestsPendingErr            EQU        -9005
  1252. snsDuplicateSubscriptionErr        EQU        -9006
  1253. snsDuplicateDistributorErr        EQU        -9007
  1254. snsNoSuchDistributorErr            EQU        -9008
  1255. snsSubjectToLargeErr            EQU        -9009
  1256. snsBufferTooSmallErr            EQU        -9010
  1257. snsConsumerQueueOverrunErr        EQU        -9011
  1258. snsReliabilityFailureErr        EQU        -9012
  1259. snsAlreadyUnheldErr                EQU        -9013
  1260.  
  1261.  
  1262.                                                             ; Drag Manager error codes 
  1263. badDragRefErr                    EQU        -1850                ; unknown drag reference 
  1264. badDragItemErr                    EQU        -1851                ; unknown drag item reference 
  1265. badDragFlavorErr                EQU        -1852                ; unknown flavor type 
  1266. duplicateFlavorErr                EQU        -1853                ; flavor type already exists 
  1267. cantGetFlavorErr                EQU        -1854                ; error while trying to get flavor data 
  1268. duplicateHandlerErr                EQU        -1855                ; handler already exists 
  1269. handlerNotFoundErr                EQU        -1856                ; handler not found 
  1270. dragNotAcceptedErr                EQU        -1857                ; drag was not accepted by receiver 
  1271. unsupportedForPlatformErr        EQU        -1858                ; call is for PowerPC only 
  1272. noSuitableDisplaysErr            EQU        -1859                ; no displays support translucency 
  1273. badImageRgnErr                    EQU        -1860                ; bad translucent image region 
  1274. badImageErr                        EQU        -1861                ; bad translucent image PixMap 
  1275.  
  1276.                                                             ; Mixed Mode error codes 
  1277. mmInternalError                    EQU        -2526
  1278.  
  1279.                                                             ; error codes 
  1280. tsmComponentNoErr                EQU        0                    ; component result = no error 
  1281. tsmUnsupScriptLanguageErr        EQU        -2500
  1282. tsmInputMethodNotFoundErr        EQU        -2501
  1283. tsmNotAnAppErr                    EQU        -2502                ; not an application error 
  1284. tsmAlreadyRegisteredErr            EQU        -2503                ; want to register again error 
  1285. tsmNeverRegisteredErr            EQU        -2504                ; app never registered error (not TSM aware) 
  1286. tsmInvalidDocIDErr                EQU        -2505                ; invalid TSM documentation id 
  1287. tsmTSMDocBusyErr                EQU        -2506                ; document is still active 
  1288. tsmDocNotActiveErr                EQU        -2507                ; document is NOT active 
  1289. tsmNoOpenTSErr                    EQU        -2508                ; no open text service 
  1290. tsmCantOpenComponentErr            EQU        -2509                ; can’t open the component 
  1291. tsmTextServiceNotFoundErr        EQU        -2510                ; no text service found 
  1292. tsmDocumentOpenErr                EQU        -2511                ; there are open documents 
  1293. tsmUseInputWindowErr            EQU        -2512                ; not TSM aware because we are using input window 
  1294. tsmTSHasNoMenuErr                EQU        -2513                ; the text service has no menu 
  1295. tsmTSNotOpenErr                    EQU        -2514                ; text service is not open 
  1296. tsmComponentAlreadyOpenErr        EQU        -2515                ; text service already opened for the document 
  1297. tsmInputMethodIsOldErr            EQU        -2516                ; returned by GetDefaultInputMethod 
  1298. tsmScriptHasNoIMErr                EQU        -2517                ; script has no imput method or is using old IM 
  1299. tsmUnsupportedTypeErr            EQU        -2518                ; unSupported interface type error 
  1300. tsmUnknownErr                    EQU        -2519                ; any other errors 
  1301. tsmInvalidContext                EQU        -2520                ; Invalid TSMContext specified in call 
  1302. tsmNoHandler                    EQU        -2521                ; No Callback Handler exists for callback 
  1303. tsmNoMoreTokens                    EQU        -2522                ; No more tokens are available for the source text 
  1304. tsmNoStem                        EQU        -2523                ; No stem exists for the token 
  1305. ;  AppleEvent error definitions 
  1306.  
  1307. errOffsetInvalid                EQU        -1800
  1308. errOffsetIsOutsideOfView        EQU        -1801
  1309. errTopOfDocument                EQU        -1810
  1310. errTopOfBody                    EQU        -1811
  1311. errEndOfDocument                EQU        -1812
  1312. errEndOfBody                    EQU        -1813
  1313.  
  1314.                                                             ; Database access error codes 
  1315. rcDBNull                        EQU        -800
  1316. rcDBValue                        EQU        -801
  1317. rcDBError                        EQU        -802
  1318. rcDBBadType                        EQU        -803
  1319. rcDBBreak                        EQU        -804
  1320. rcDBExec                        EQU        -805
  1321. rcDBBadSessID                    EQU        -806
  1322. rcDBBadSessNum                    EQU        -807                ; bad session number for DBGetConnInfo 
  1323. rcDBBadDDEV                        EQU        -808                ; bad ddev specified on DBInit 
  1324. rcDBAsyncNotSupp                EQU        -809                ; ddev does not support async calls 
  1325. rcDBBadAsyncPB                    EQU        -810                ; tried to kill a bad pb 
  1326. rcDBNoHandler                    EQU        -811                ; no app handler for specified data type 
  1327. rcDBWrongVersion                EQU        -812                ; incompatible versions 
  1328. rcDBPackNotInited                EQU        -813                ; attempt to call other routine before InitDBPack 
  1329.  
  1330.                                                             ; ENET error codes 
  1331. eLenErr                            EQU        -92                    ;Length error ddpLenErr
  1332. eMultiErr                        EQU        -91                    ;Multicast address error ddpSktErr
  1333.  
  1334.                                                             ; DS Errors which are specific to the new runtime model introduced with PowerPC 
  1335. dsBadLibrary                    EQU        1010                ; Bad shared library 
  1336. dsMixedModeFailure                EQU        1011                ; Internal Mixed Mode Failure 
  1337. ;  System Logging Service 
  1338.  
  1339. logNoConnectionErr                EQU        -29880
  1340. logDataTooLargeErr                EQU        -29881
  1341. logInvalidVersionErr            EQU        -29882
  1342. logNoSuchActionErr                EQU        -29883
  1343. logServiceInUseErr                EQU        -29884
  1344. logNoMoreEntriesErr                EQU        -29885
  1345. logQueueFullErr                    EQU        -29886
  1346. logServiceNotInUseErr            EQU        -29887
  1347. logIteratorInUseErr                EQU        -29888
  1348. logNotATextEntryErr                EQU        -29889
  1349. logNoDataAvailableErr            EQU        -29890
  1350. logInvalidSizeErr                EQU        -29891
  1351. logPluginNotPresentErr            EQU        -29892
  1352. logWrongTypeErr                    EQU        -29893
  1353. logEntryCorruptErr                EQU        -29894
  1354. logCannotCreateActionErr        EQU        -29895
  1355. logIteratorInvalidErr            EQU        -29896
  1356. logInvalidSituationTypeErr        EQU        -29897
  1357. logCorruptStoreErr                EQU        -29898
  1358. ;
  1359. ; pascal void SysError(short errorCode)
  1360. ;
  1361.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1362.         ; parameters:
  1363.         ;    errorCode       => D0
  1364.         _SysError:    OPWORD    $A9C9
  1365.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1366.         IMPORT_CFM_FUNCTION SysError
  1367.     ENDIF
  1368.  
  1369.  
  1370.  
  1371.     ENDIF ; __ERRORS__ 
  1372.  
  1373.